package com.baixun.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

@Data
public class Dep {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private String depName;
    private Byte depStatus;
    private String introduce;
    private Integer fId; //上级部门id
    @Version
    private Integer version;//版本号

    public Integer size(){

        if(id == null && depName == null && depStatus == null && introduce == null && fId == null){
            return 0;
        }else {
            return 1;
        }
    }
}
